/*
 * =====================================================================================
 *
 *       Filename:  viewThresholded.cpp
 *
 *    Description:  View a png file thresholded and enlarged, as used for the algorithms
 *
 *        Version:  1.0
 *        Created:  16/07/12 13:54:10
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Moos Hueting (mh), mooshueting@gmail.com
 *   Organization:  
 *
 * =====================================================================================
 */
#include <iostream>
#include <cv.h>
#include <highgui.h>

using namespace std;
using namespace cv;

int main(int argc, char* argv[]) {

    Mat im = imread(argv[1], CV_LOAD_IMAGE_GRAYSCALE);
    threshold(im, im, 100, 255, THRESH_BINARY);
    resize(im, im, Size(0,0), 10, 10, INTER_NEAREST);

    namedWindow("Display", CV_WINDOW_AUTOSIZE);
    imshow("Display", im);
    waitKey(0);
}
